package com.yanghx.user.feign;

import com.yanghx.service.IOrderService;
import com.yanghx.service.dto.OrderDto;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author yangHX
 * createTime  2019/8/9 16:55
 */
@FeignClient(value = "order", path = "/api/order")
public interface OrderClient extends IOrderService {

    @PostMapping
    @Override
    OrderDto create(OrderDto dto);

    @GetMapping("/{id}")
    @Override
    OrderDto getMyOrder(@PathVariable(name = "id") Long id);
}
